using System;

namespace SeataNet.Core.Attributes
{
    /// <summary>
    /// TCC事务特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
    public class TccTransactionalAttribute : Attribute
    {
        /// <summary>
        /// 事务超时时间（毫秒）
        /// </summary>
        public int TimeoutMs { get; set; } = 60000;
        
        /// <summary>
        /// 事务名称
        /// </summary>
        public string? Name { get; set; }
    }
}